<?php
/**
 * 问答表单配置
 * Enter description here ...
 * @author kyou
 *
 */
class Const_QaDoc{
    const INPUT_FILE_NAME = "formFile"; //input file name
    const PATH_UPLOAD = "../upload/qa/"; //默认上传地址
    const PATH_BASE = APP_PATH;
    const MAX_SIZE = 20; //最大size 单位M
    private static $input_file_type = array (
        '.jpg',
        '.jpeg',
        '.png',
        '.gif',
        '.bmp',
        '.doc',
        '.docx',
        '.xls',
        '.xlsx',
        '.ppt',
        '.pptx',
        '.txt',
        '.pdf',
        '.zip',
        '.rar',
    );

    /**
     * 返回允许的表单格式
     * Enter description here ...
     */
    public static function get_valid_ext(){
        return self::$input_file_type;
    }
}